package com.lch.netty.netty.tomcat.http;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.HttpRequest;

/**
 * @author: liuchenhui
 * @create: 2019-10-14 13:16
 **/
public class NRequest {


    private final ChannelHandlerContext ctx;
    private final HttpRequest request;
    private String url;
    private String mothed;

    public NRequest(ChannelHandlerContext ctx, HttpRequest request) {
        this.ctx = ctx;
        this.request = request;
        this.url = request.getUri();
        this.mothed = request.getMethod().name();
    }


    public String getUrl() {
        return url;
    }

    public String getMethod() {
        return mothed;
    }
}
